CUBE CONNECT Edition Help

Adding CubePy programs

CubePy programs allow users to add python scripts in their model workflows, as well as to dynamically link input and output files from the CubePy program to other CUBE programs.

To add a CubePy program:

  • • Click on the Py tool in the Application Editor toolbar

  • • Right-click on the Application Editor canvas > Add > Program > CubePy

In the CubePy Info window:

  1. Write down the name you want to assign to the Program and the python script.
    Note: It is not possible to name a python script cubepy.
  2. Under the Annotation section you can write the title you wish to assign to the CubePy program.
  3. Select the number of input and output files you wish the program to have.
  4. Click Add
  5. The Python program will appear in Application Editor and will have the same structure as the other CUBE programs.

Note: A python symbol is displayed on the bottom left corner of a CubePy program to identify it.

If you select no input or output files or wish to add more files than the ones selected in the initial setup:

  1. 1. Right-Click on any of input or output > Add File > Before/ After (meaning the location in which it will be added based on the file selected).
  2. 2. The Edit File Description box will open
  3. 3. Write down the File description and the file extension.
  4. 4. Click Update

To assign the data files a name:

  • Right-click on the file box > Auto Name, to let CUBE autogenerate a name for the file
  • Right-click on the file box > Enter name, to manually enter the file name.

The File Explorer window will open in the application folder. Write down the name > Save